/**
 * 泛型单例模式（ts中的方法<T>泛型）
 */
export default class Singleton{
  private static _instance: any = null

  static GetInstance<T>():T {
    if(this._instance === null) {
      this._instance = new this()
    }
    return this._instance
  }
}
